package com.hqyj.system.mapper;

import com.hqyj.system.model.Permission;
import org.apache.ibatis.annotations.Mapper;

import javax.xml.ws.soap.MTOM;
import java.util.List;
@Mapper
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> queryAllPermission();

    List<Permission> queryPermissionByRoleId(int roleId);

    List<Permission> queryPermissionByUserId(int userId);

    List<Permission> queryPermissionByUserIdAndType(int userId);

    List<Permission> queryPermissionBypIdAndType(int pId);

    List<Permission> queryloginUserPermission(int userId);
}